#include "list.h"
int main()
{
	/*yss::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	auto it = lt.begin();
	while (it != lt.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;*/

	/*yss::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_front(100);
	lt.push_front(1000);
	
	lt.pop_back();
	lt.pop_front();

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;*/

	/*yss::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_front(100);
	lt.push_front(1000);

	lt.clear();

	lt.push_back(77);

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;*/

	//yss::list<int> lt;
	//lt.push_back(1);
	//lt.push_back(2);
	//lt.push_back(3);
	//lt.push_back(4);
	//lt.push_front(10);
	//lt.push_front(100);
	//lt.push_back(9);
	//lt.push_back(99);
	//yss::list<int> lt1(lt);
	////yss::list<int> lt1 = lt;

	//for (auto e : lt1)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;

	/*yss::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(10);
	cout << lt.size() << endl;
	cout << lt.empty() << endl;
	cout << lt.front() << endl;
	cout << lt.back() << endl;*/

	yss::list<int> lt(6, 778);
	yss::list<int> lt1(lt.begin(), lt.end());
	for (auto e : lt1)
	{
		cout << e << " ";
	}
	cout << endl;

	return 0;
}